import sys

from PyQt5 import QtCore, QtGui, QtWidgets
from util2 import Ui_MainWindow
class Login(QtWidgets.QMainWindow, Ui_MainWindow):
    def __init__(self):
        super(Login, self).__init__()
        self.setupUi(self)
    def setupUi(self, Ui_MainWindow):
        super().setupUi(Ui_MainWindow)
        self.toolButton.setIconSize(QtCore.QSize(96, 96))
        self.toolButton.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)  #ToolButtonTextBesideIcon 文本显示在图标旁边（通常为水平排列
        self.toolButton.setAutoRaise(True)

        self.toolButton_2.setIconSize(QtCore.QSize(96, 96))
        self.toolButton_2.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolButton.setAutoRaise(True)

        self.toolButton_3.setIconSize(QtCore.QSize(96, 96))
        self.toolButton_3.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolButton.setAutoRaise(True)

        self.toolButton_4.setIconSize(QtCore.QSize(96, 96))
        self.toolButton.setAutoRaise(True)
        self.toolButton_4.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
if __name__ == '__main__':
    app = QtWidgets.QApplication(sys.argv)
    login = Login()
    login.show()
    sys.exit(app.exec_())